package com.cashmama.market.api.application.controller.user.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-04-16 17:21
 **/
public class UserReadPopupRequest extends ParamsObject {

    /**
     * 弹窗ID
     */
    private Long popupId;

    public Long getPopupId() {
        return popupId;
    }

    public UserReadPopupRequest setPopupId(Long popupId) {
        this.popupId = popupId;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(popupId == null || popupId <= 0, "popupId cannot be empty");
    }
}
